/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.beautycenter.Funcionalidades.Biometria;

import com.digitalpersona.onetouch.DPFPGlobal;
import com.digitalpersona.onetouch.capture.DPFPCapture;
import com.digitalpersona.onetouch.capture.event.DPFPDataAdapter;
import com.digitalpersona.onetouch.capture.event.DPFPDataEvent;
import com.digitalpersona.onetouch.capture.event.DPFPReaderStatusAdapter;
import com.digitalpersona.onetouch.capture.event.DPFPReaderStatusEvent;

/**
 *
 * @author JoãoVictor
 */
public class CapturarDigital {
    private DPFPCapture capturar = DPFPGlobal.getCaptureFactory().createCapture();
    
    public void inicializar(){
        capturar.addReaderStatusListener(new DPFPReaderStatusAdapter(){
            @Override
            public void readerDisconnected(DPFPReaderStatusEvent dpfprs) {
                //CadastrarDigital.digital = null;
            }
        });
        
        capturar.addDataListener(new DPFPDataAdapter(){

            @Override
            public void dataAcquired(DPFPDataEvent e) {
                System.out.println();
            }
        });
    
    }
}
